﻿using System.Collections.Generic;
using ZilLion.Service.Core.DapperWrapper;
using ZilLion.Service.ZilLionOss.Domain.Entitys;

namespace ZilLion.Service.ZilLionOss.Domain.Repositorys.Interface
{
    public interface IOssRoleRepository : IRespository
    {
        OssRoleEntity GetOssRoleById(long roleid);
        OssRoleEntity SaveOssRole(OssRoleEntity entity);
        IEnumerable<OssRoleEntity> GetOssUserRoles(long userid);
        IEnumerable<OssRoleEntity> GetAllRoles();
        void DeleteRole(long roleid, UnitOfWork unit = null);
    }
}